import  pytest
from os import system


def main():
    """
    加载执行测试用例
    :return:
    """
    # pytest.main(['-sv', '--alluredir=result', 'script/a_test.py'])
    pytest.main(['-sv','--alluredir=result','--clean-alluredir','script/API_1_test.py'])
    system('allure generate result --clean -o report')



if __name__ == '__main__':
    main()